package com.chinasoft.ecommerceconsumptionanalysissystem.service.impl;

import com.chinasoft.ecommerceconsumptionanalysissystem.mapper.RepeatOrderByUserMapper;
import com.chinasoft.ecommerceconsumptionanalysissystem.pojo.RepeatOrderByUser;
import com.chinasoft.ecommerceconsumptionanalysissystem.service.RepeatOrderByUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RepeatOrderByUserServiceImpl implements RepeatOrderByUserService {
    @Autowired
    private RepeatOrderByUserMapper repeatOrderByUserMapper;

    @Override
    public List<RepeatOrderByUser> selectAll() {
        return repeatOrderByUserMapper.selectAll();
    }

    @Override
    public int insert(RepeatOrderByUser repeatOrderByUser) {
        return repeatOrderByUserMapper.insert(repeatOrderByUser);
    }
}
